PREFIX=/usr/local
BINDIR= $(PREFIX)/bin
LIBS = 
PROGRAM = myftp
CC=gcc
CFLAGS= 
COMPILE = $(CC) $(CFLAGS) -c
LINK = $(CC) $(CFLAGS)

all: $(PROGRAM)

$(PROGRAM):  myftp.o fileutils.o connection.o
	$(LINK) myftp.o fileutils.o connection.o -g -o $(PROGRAM)
	
myftp.o: myftp.c define.h fileutils.h connection.h
	$(COMPILE) myftp.c
fileutils.o: fileutils.c define.h fileutils.h connection.h
	$(COMPILE) fileutils.c
connection.o: connection.c define.h fileutils.h connection.h
	$(COMPILE) connection.c
clean:
	rm -f *.o myftp
